package dawnland03.data.map.io.reader.sax;

import dawnland03.data.map.io.reader.MatrixXMLReader;
import dawnland03.data.map.model.Matrix;

/**
 * User: Petru Obreja (obrejap@yahoo.com)
 * Date: Sep 16, 2009
 * Time: 8:53:41 PM
 */
public class MatrixXMLSAXReader implements MatrixXMLReader {
    @Override
    public Matrix readMatrix(String fileName) {
        MatrixXMLSAXHandler handler = new MatrixXMLSAXHandler();
        MatrixXMLSAXParser parser = new MatrixXMLSAXParser(handler);
        return parser.parse(fileName);        
    }
}
